package abstracts;

/**
 * @Author admin
 * @Date 2019/3/20 10:45
 */
public class Factorys {
    public static Shape getshape(int choose){
        if (choose==1){
            return new Circle(2);
        }else if(choose==2){
            return new Triangle(4,6);
        }
        else {
            return null;
        }
    }
}
